Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RNN

Hierarchy

  • RNN

Index

Constructors

constructor

Properties

U

V

W

finis

finis: string = '/n'

firstSt

firstSt: Matrix

hidenSize

hidenSize: number = 10

indexWord

indexWord: {} = {}

Type declaration

  • [index: string]: number

inputSize

inputSize: number

outputSize

outputSize: number

rate

rate: number = 0.01

trainData

trainData: string[]

wordIndex

wordIndex: {} = {}

Type declaration

  • [index: number]: string

Methods

backPropagation

calcForward

cost

fit

forwardPropagation

generateXs

  • generateXs(input: string): Matrix[]

generateYs

  • generateYs(input: string): Matrix[]

oneHotXs

  • oneHotXs(inputIndex: number): Matrix

oneHotYs

  • oneHotYs(outputIndex: number): Matrix

predict

  • predict(input: string, length?: number): string
  • Parameters

    • input: string
    • length: number = 10

      return character of max length

    Returns string

Generated using TypeDoc